//
//  AppDelegate.h
//  nonghubao
//
//  Created by 王 文彬 on 13-2-22.
//  Copyright (c) 2013年 Chongqing Nonghubao Co., Ltd. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "MBProgressHUD.h"
#import "JSONRequest.h"
#import "SocialDelegate.h"

@class LaunchViewController;
@class MainViewController;
@class DefaultViewController;
@class SplashViewController;

@interface AppDelegate : UIResponder <UIApplicationDelegate, UITabBarControllerDelegate, JSONRequestDelegate,MBProgressHUDDelegate>
{
    LaunchViewController*    _launchViewController;
    MainViewController*      _mainViewController;
    DefaultViewController*   _defaultViewController;
    SplashViewController*    _splashViewController;
    UINavigationController*  _defaultNavigationController;
    
    NSInteger _lastIndex;
    NSInteger _dynamicUnreadCount;
    NSInteger _noticeUnreadCount;
    
    //用于记录LauncherViewController是否启动成功的变量，并与_appDelegateDidFinish一起计算，是否触发Start_Default
    int      _launcherDidFinish;
    //用于记录AppDelegate引导环境是否成功的变量，并与_launcherDidFinish一起计算，是否触发Start_Default
    BOOL      _appDelegateDidFinish;
    
    NSString *_appPath;
    NSDictionary *_versionInfo;
    
}

//分享代理对象
@property (strong, nonatomic) SocialDelegate *socialDelegate;
@property (strong, nonatomic) UIWindow *window;

@end
